package com.lenovo.vctlclient;

import com.lenovo.vctlclient.HelpFaqActivity;

import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;
import android.view.Menu;
import android.view.Window;

public class WelcomeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_welcom);
		SharedPreferences share = getSharedPreferences("firstLogin", Context.MODE_PRIVATE);
		int time = share.getInt("time", 0);
		Log.w("time       ", time+"");
		
		if(time == 0){
			Intent startIntent = new Intent();
			startIntent.setClass(this, HelpFaqActivity.class);
			startActivity(startIntent);
			return;
		}
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.welcom, menu);
		return true;
	}

}
